﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Public;
using System.Data;

namespace BUS
{
    public class DonVi_BUS
    {
        DonVi_DAL dv_dal = new DonVi_DAL();

        public DataTable LayDSDonvi()
        {
            return dv_dal.LayDSDonVi();
        }

        public bool Exists(string ma)
        {
            return dv_dal.Exists(ma);
        }

        public int ThemDonVi(DonVi_PB dv_pb)
        {
      
            return dv_dal.ThemDonVi(dv_pb);
        }
        public int ThemSuaDonVi(DonVi_PB dv_pb)
        {

            return dv_dal.ThemSuaDonVi(dv_pb);
        }
        public int SuaDonVi(DonVi_PB dv_pb)
        {
            return dv_dal.SuaDonVi(dv_pb);
        }
        public int XoaDonVi(string madonvi)
        {
            return dv_dal.XoaDonVi(madonvi);
        }


    }
}
